selector: Rewrite position tracking
authorBenjamin Otte <otte@redhat.com>
Sun, 18 Mar 2012 01:11:44 +0000 (02:11 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 17 Apr 2012 06:59:08 +0000 (08:59 +0200)
commit3bdde54aaf92bca5c0511307b77b2c7afcbc4d3d
tree4a1d69c645d61bb9b3941910716a112275bd426a
parent8dbe8c83491c5877c9b19928f257ec7a671cb45e
selector: Rewrite position tracking

We now track the position as a (type,a,b) tuple where the numbers make
up the an + b formula from CSS3 nth-child.

Also, the get_sibling() and get_sibling_index() vfuncs were replaced by
a has_position() vfunc. This is mostly so that the matcher can always
return TRUE. And I need that for the everything matcher.
gtk/gtkcssmatcher.c
gtk/gtkcssmatcherprivate.h
gtk/gtkcssselector.c